package com.zxn.ssyx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zxn.ssyx.mapper.RegionMapper;
import com.zxn.ssyx.model.sys.Region;
import com.zxn.ssyx.service.RegionService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements RegionService {
    @Override
    public List<Region> findRegionByKeyWord(String keyword) {
        return lambdaQuery().like(Region::getName,keyword).list();
    }
}
